const express = require('express');
const app = express();
app.get('/get', (req, res) => {
    res.send({
        data: [
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
        ],
    });
});
app.post('/post', (req, res) => {
    res.send({
        data: [
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
        ],
    });
});
app.put('/put', (req, res) => {
    res.send({
        data: [
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
        ],
    });
});
app.delete('/delete', (req, res) => {
    res.send({
        data: [
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
            { name: 'data1' },
        ],
    });
});

app.listen(8888, () => {
    console.log('server stared');
});
